<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="/style/css/print.min.css">
    <script type="text/javascript" src="../../lib/js/jquery-v2.2.1.min.js"></script>
</head>
<body>
    <script>
        $mm = jQuery.noConflict();
    </script>
    <script type="text/javascript" src="../../lib/js/handlebars.runtime-v3.0.3.min.js"></script>

    <script src="/js/viewer/printTmpl.js"></script>

    <script src="/js/common.js"></script>

    <script src="../../lib/js/r.min.js" type="text/javascript"></script>

    <script type="text/javascript">
    const WEB_TYPE = "print-mail";
    (function() {
        getScript(path, function() {
            G.resetContentQueue[MAILID] = new EventQueue();
            G.mailDataAccess[MAILID] = new MailDataAccess(gViewInfo);
            G.mailDataAccess[MAILID].addData({"mailId": MAILID});
            G.inlineAttachmentMap[MAILID] = new Map();
            var mailData =G.mailDataAccess[MAILID].getData();
            var sContent = Viewer.tmpl.print(mailData);
            document.body.innerHTML = sContent;
            getScript("../../js/viewer/printView.js");
        });
    })();
    </script>
	 <script type="text/javascript">
	//加载事件
window.onload=function(){
 var bcd=document.body.innerHTML;//JS方式
  document.getElementById("showlast2").innerText=bcd.toString();
 //alert(bcd.toString());
   
};
</script>
<p id="showlast2">324</p>
</body>
</html>
